package com.yizhuoyan.his.webapi.controller.doctor.outpatient.vo;

import com.yizhuoyan.his.entity.DocHerbalPrescriptionDetailEntity;
import lombok.Data;

/**
 * 中草药处方详情
 * @author 徐世杰
 */
@Data
public class DocHerbalPrescriptionDetailVo {
    //用量============================
    private String dosage;
    //药品单价=========================
    private double price;
    //脚注============================
    private String footnote;

    public static DocHerbalPrescriptionDetailVo of(DocHerbalPrescriptionDetailEntity e)throws Exception{
        DocHerbalPrescriptionDetailVo vo=new DocHerbalPrescriptionDetailVo();
        vo.setDosage(e.getDosage());
        vo.setPrice(e.getPrice());
        vo.setFootnote(e.getFootnote());
        return vo;
    }
}
